package com.etcn.modules.statical.base.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.etcn.common.controller.BaseController;
import com.etcn.modules.statical.base.pojo.BaseCompany;
import com.etcn.modules.statical.base.service.IBaseCompanyService;

import org.springframework.web.bind.annotation.ResponseBody;
import com.etcn.common.annotation.Manage;

/**
 * 企业controller
 * @author guozc
 * @date: 2018-01-12 10:49:26
 */
@Controller
@RequestMapping("/v1/base")
public class BaseCompanyController extends BaseController {

	@Autowired
    private IBaseCompanyService baseCompanyService;

     /**
     * 查询企业列表
     */
    @Manage
    @RequestMapping(value = "companys", method = RequestMethod.GET)
    public @ResponseBody Object companys(BaseCompany baseCompany) throws Exception{
    	return baseCompanyService.findList(baseCompany);
    }
    
}